package com.sayice.design.lab7_2.category;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author shubing
 */
public class NativeBayes {
    public List<List<String>> classify(List<String> data) {
        System.out.println("NativeBayes.classify()");
        return new ArrayList<>(data.stream().collect(Collectors.groupingBy(String::length)).values());
    }
}
